// 时间格式化
export function getdate(d,typeM) {
	var date = new Date();
	if(d){
		date = new Date(d);
	}
	var year = date.getFullYear();
	var month = date.getMonth() + 1;
	var day = date.getDate();
	var H = date.getHours();
	var M = date.getMinutes();
	var S = date.getSeconds();
	var m = date.getMilliseconds();
	let res = typeM=='m' ? `${year}-${month}-${day} ${H}:${M}:${S}:${m}` : `${year}-${month}-${day} ${H}:${M}:${S}`
	
	return res;
}